<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        function People(name,age) {
            this.name = name;
            this.age = age;
        }
        function Son(name,age,sex) {
            this.sex = sex;
//            People.apply(this,[name,age]);
            People.call(this,name,age);
        }
        var zs  = new Son('大名',18,'女');
        console.log(zs.name);
        console.log(zs.sex);
    </script>
</head>
<body>

</body>
</html>